/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package edu.ccut.titan.component.impl.directory;

import org.osgi.framework.Bundle;

import edu.ccut.titan.component.IBundleInfo;
import edu.ccut.titan.component.IDirectoryInfo;
import edu.ccut.titan.component.TitanComponentException;

/**
 * {@link IDirectoryInfo} implementation
 * 
 * @see IDirectoryInfo
 * @author LeslieGu
 * 
 */
public abstract class AbstractDirectoryInfo implements IDirectoryInfo {

	private String version;

	private String description;

	private String type;

	private String time;

	private String directoryPath;

	public AbstractDirectoryInfo(String type) {

		this.type = type;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getDirectoryPath() {
		return directoryPath;
	}

	public void setDirectoryPath(String directoryPath) {
		this.directoryPath = directoryPath;
	}

	public abstract void load(Bundle bundle, IBundleInfo bundleInfo)
			throws TitanComponentException;

	public void unload(Bundle bundle, IBundleInfo bundleInfo)
			throws TitanComponentException {

	}
}